package com.mini.service.impl;

import com.mini.bean.OrderFrom;
import com.mini.dao.OrderformMapper;
import com.mini.service.OrderformService;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;


@Service
public class OrderformServiceImp implements OrderformService {


    @Resource
    private OrderformMapper orderformMapper;


    @Override
    public List<OrderFrom> selectGetMap(String lat, String lng) {

        return orderformMapper.selectGetMap(lat,lng);
    }

    @Override
    public List<OrderFrom> getOrderList(String openid) {
        return orderformMapper.getOrderList(openid);
    }

    @Override
    public int instOrder(OrderFrom orderFrom) {
        return orderformMapper.instOrder(orderFrom);
    }
}
